#!/usr/bin/env python3
# -*- coding: utf-8 -*-
__author__ = 'Tim Yao'


class Config:

    @staticmethod
    def init_app(app):
        pass


class DevConfig(Config):
    SQLALCHEMY_DATABASE_URI = 'mysql://root:123456@localhost:3306/test'
    SQLALCHEMY_ECHO = False
    SQLALCHEMY_POOL_SIZE = 30
    SQLALCHEMY_TRACK_MODIFICATIONS = False


class UatConfig(Config):
    SQLALCHEMY_DATABASE_URI = 'mysql://root:123456@localhost:3306/test'
    SQLALCHEMY_ECHO = False
    SQLALCHEMY_POOL_SIZE = 30
    SQLALCHEMY_TRACK_MODIFICATIONS = False


config = {
    'dev': DevConfig,
    'uat': UatConfig,
    'default': DevConfig
}
